3.1.69 \(\int e^x \tan (e^x) \, dx\) [69]

Optimal. Leaf size=7 \[ -\log \left (\cos \left (e^x\right )\right ) \]

[Out]

-ln(cos(exp(x)))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2320, 3556} \begin {gather*} -\log \left (\cos \left (e^x\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[E^x*Tan[E^x],x]

[Out]

-Log[Cos[E^x]]

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 3556

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int e^x \tan \left (e^x\right ) \, dx &=\text {Subst}\left (\int \tan (x) \, dx,x,e^x\right )\\ &=-\log \left (\cos \left (e^x\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 7, normalized size = 1.00 \begin {gather*} -\log \left (\cos \left (e^x\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[E^x*Tan[E^x],x]

[Out]

-Log[Cos[E^x]]

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 7, normalized size = 1.00

method result size
derivativedivides \(-\ln \left (\cos \left ({\mathrm e}^{x}\right )\right )\) \(7\)
default \(-\ln \left (\cos \left ({\mathrm e}^{x}\right )\right )\) \(7\)
norman \(\frac {\ln \left (1+\tan ^{2}\left ({\mathrm e}^{x}\right )\right )}{2}\) \(11\)
risch \(i {\mathrm e}^{x}-\ln \left ({\mathrm e}^{2 i {\mathrm e}^{x}}+1\right )\) \(18\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)*tan(exp(x)),x,method=_RETURNVERBOSE)

[Out]

-ln(cos(exp(x)))

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 4, normalized size = 0.57 \begin {gather*} \log \left (\sec \left (e^{x}\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="maxima")

[Out]

log(sec(e^x))

________________________________________________________________________________________

Fricas [A]
time = 1.74, size = 12, normalized size = 1.71 \begin {gather*} -\frac {1}{2} \, \log \left (\frac {1}{\tan \left (e^{x}\right )^{2} + 1}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="fricas")

[Out]

-1/2*log(1/(tan(e^x)^2 + 1))

________________________________________________________________________________________

Sympy [A]
time = 0.08, size = 10, normalized size = 1.43 \begin {gather*} \frac {\log {\left (\tan ^{2}{\left (e^{x} \right )} + 1 \right )}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x)

[Out]

log(tan(exp(x))**2 + 1)/2

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 7, normalized size = 1.00 \begin {gather*} -\log \left ({\left | \cos \left (e^{x}\right ) \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*tan(exp(x)),x, algorithm="giac")

[Out]

-log(abs(cos(e^x)))

________________________________________________________________________________________

Mupad [B]
time = 2.65, size = 10, normalized size = 1.43 \begin {gather*} \frac {\ln \left ({\mathrm {tan}\left ({\mathrm {e}}^x\right )}^2+1\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(exp(x))*exp(x),x)

[Out]

log(tan(exp(x))^2 + 1)/2

________________________________________________________________________________________